home *** CD-ROM | disk | FTP | other *** search
- <?php
-
- class skin_mod {
-
-
- function modtopicview_start($tid,$forumname, $fid, $title) {
- global $ibforums;
- return <<<EOF
-
- <form name='ibform' action='{$ibforums->base_url}' method='POST'>
- <input type='hidden' name='s' value='{$ibforums->session_id}'>
- <input type='hidden' name='act' value='ModCP'>
- <input type='hidden' name='CODE' value='domodposts'>
- <input type='hidden' name='f' value='{$fid}'>
- <input type='hidden' name='tid' value='{$tid}'>
-
- <tr>
- <td colspan='2'>
- <table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
- <tr>
- <td><span id='pagetitle'>{$ibforums->lang['cp_mod_posts_title2']} $forumname</span>
- <br>$pages
- </td>
- </tr>
- <tr>
- <td colspan='2'>
- <table width='100%' cellpadding='4' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
- <tr>
- <td valign='middle' id='titlemedium' align='left' colspan='2'>$title</td>
- </tr>
-
- EOF;
- }
-
-
- function modpost_topicstart($forumname, $fid) {
- global $ibforums;
- return <<<EOF
-
- <tr>
- <td colspan='2'>
- <table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
- <tr>
- <td><span id='pagetitle'>{$ibforums->lang['cp_mod_posts_title2']} $forumname</span>
- </td>
- </tr>
- <tr>
- <td>
- <table width='100%' cellpadding='4' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
- <tr>
- <td id='titlemedium' width='40%'>{$ibforums->lang['cp_3_title']}</td>
- <td id='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_replies']}</td>
- <td id='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_approveall']}</td>
- <td id='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_viewall']}</td>
- </tr>
-
- EOF;
- }
-
- function modpost_topicentry($title, $tid, $replies, $fid) {
- global $ibforums;
- return <<<EOF
-
- <tr>
- <td id='row1' width='40%' align='left'><b><a href='{$ibforums->base_url}&act=ST&f=$fid&t=$tid' target='_blank'>$title</a></b></td>
- <td id='row1' width='20%' align='center'>$replies</td>
- <td id='row1' width='20%' align='center'><a href='{$ibforums->base_url}&act=ModCP&f=$fid&tid=$tid&CODE=modtopicapprove'>{$ibforums->lang['cp_3_approveall']}</a></td>
- <td id='row1' width='20%' align='center'><a href='{$ibforums->base_url}&act=ModCP&f=$fid&tid=$tid&CODE=modtopicview'>{$ibforums->lang['cp_3_viewall']}</a></td>
- </tr>
-
- EOF;
- }
-
- function modpost_topicend() {
- global $ibforums;
- return <<<EOF
-
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
-
- EOF;
- }
-
-
-
- function modtopics_start($pages,$forumname, $fid) {
- global $ibforums;
- return <<<EOF
-
- <form name='ibform' action='{$ibforums->base_url}' method='POST'>
- <input type='hidden' name='s' value='{$ibforums->session_id}'>
- <input type='hidden' name='act' value='ModCP'>
- <input type='hidden' name='CODE' value='domodtopics'>
- <input type='hidden' name='f' value='{$fid}'>
-
- <tr>
- <td colspan='2'>
- <table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
- <tr>
- <td><span id='pagetitle'>{$ibforums->lang['cp_mod_topics_title2']} $forumname</span>
- <br>$pages
- </td>
- </tr>
-
- EOF;
- }
-
- function modtopics_end() {
- global $ibforums;
- return <<<EOF
-
- <tr>
- <td id='row2' align='center'><select name='type' class='forminput'><option value='approve'>{$ibforums->lang['cp_1_approve']}</option><option value='remove'>{$ibforums->lang['cp_1_remove']}</option></select> {$ibforums->lang['cp_1_selected']} <input type='submit' value='{$ibforums->lang['cp_1_go']}' class='forminput'></td>
- </tr>
- </table>
- </td>
- </tr>
- </form>
-
- EOF;
- }
-
-
- function mod_topic_title($title, $topic_id) {
- global $ibforums;
- return <<<EOF
-
- <tr>
- <td colspan='2'>
- <table width='100%' cellpadding='4' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
- <tr>
- <td valign='middle' id='titlemedium' align='left' colspan='2'><input type='checkbox' name='TID_$topic_id' value='1'> $title</td>
- </tr>
-
- EOF;
- }
-
-
- function mod_postentry($data) {
- global $ibforums;
- return <<<EOF
-
- <tr>
- <td valign='top' id='row1' width='25%'><span id='normalname'>{$data['member']['name']}</span><br><br>{$data['member']['avatar']}<span id='postdetails'><br>{$data['member']['MEMBER_GROUP']}<br>{$data['member']['MEMBER_POSTS']}<br>{$data['member']['MEMBER_JOINED']}</span></td>
- <td valign='top' height='100%' id='row1' width='75%'>
- <b>{$ibforums->lang['posted_on']} {$data['msg']['post_date']}</b><br><br>
- <span id='postcolor'>
- {$data['msg']['post']}
- </span>
- </td>
- </tr>
-
-
- EOF;
- }
-
- function mod_postentry_checkbox($pid) {
- global $ibforums;
- return <<<EOF
-
- <tr>
- <td align='left' colspan='2' id='category'><input type='checkbox' name='PID_$pid' value='1'> {$ibforums->lang['cp_3_postno']} $pid</td>
- </tr>
-
- EOF;
- }
-
-
- function mod_topic_spacer() {
- global $ibforums;
- return <<<EOF
-
- </table>
- </td>
- </tr>
- <tr>
- <td colspan='2'>
-
- </td>
- </tr>
-
- EOF;
- }
-
- function results($text) {
- global $ibforums;
- return <<<EOF
-
- <tr>
- <td colspan='2'>
- <table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
- <tr>
- <td><span id='pagetitle'>{$ibforums->lang['cp_results']}</span>
- </td>
- </tr>
- <tr>
- <td colspan='2'><b>$text</b></td>
- </tr>
- </table>
- </td>
- </tr>
-
- EOF;
- }
-
-
- function prune_confirm($tcount, $count, $link, $link_text) {
- global $ibforums;
- return <<<EOF
-
- <tr>
- <td colspan='2'>
- <table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
- <tr>
- <td><span id='pagetitle'>{$ibforums->lang['cp_check_result']}</span>
- <br>{$ibforums->lang['cp_check_text']}
- </td>
- </tr>
- <tr>
- <td><b>{$ibforums->lang['cp_total_topics']}</b></td>
- <td>$tcount</td>
- </tr>
- <tr>
- <td><b><span style='color:red'>{$ibforums->lang['cp_total_match']}</span></b></td>
- <td><span style='color:red'>$count</span></td>
- </tr>
- <tr>
- <td colspan='2' align='center' id='row2'><b><a href='{$ibforums->base_url}$link'>$link_text</a></b></td>
- </tr>
- </table>
- </td>
- </tr>
-
- EOF;
- }
-
- function prune_splash($forum, $forums, $select) {
- global $ibforums;
- return <<<EOF
-
- <form name='ibform' action='{$ibforums->base_url}' method='POST'>
- <input type='hidden' name='s' value='{$ibforums->session_id}'>
- <input type='hidden' name='act' value='ModCP'>
- <input type='hidden' name='CODE' value='prune'>
- <input type='hidden' name='f' value='{$forum['id']}'>
- <input type='hidden' name='check' value='1'>
-
- <!-- IBF.CONFIRM -->
-
- <tr>
- <td colspan='2' id='pagetitle'>{$ibforums->lang['cp_prune']} {$forum['name']}</td>
- </tr>
- <tr>
- <td colspan='2'>{$ibforums->lang['cp_prune_text']}</td>
- </tr>
-
- <tr>
- <td width='40%' id='row2'>{$ibforums->lang['cp_action']}</td>
- <td id='row2'><select name='df' class='forminput'>$forums</select></td>
- </tr>
-
- <tr>
- <td width='40%'>{$ibforums->lang['cp_prune_days']}</td>
- <td><input type='text' size='40' name='dateline' value='{$ibforums->input['dateline']}' class='forminput'></td>
- </tr>
-
- <tr>
- <td width='40%'>{$ibforums->lang['cp_prune_type']}</td>
- <td>$select</td>
- </tr>
-
- <tr>
- <td width='40%'>{$ibforums->lang['cp_prune_replies']}</td>
- <td><input type='text' size='40' name='posts' value='{$ibforums->input['posts']}' class='forminput'></td>
- </tr>
-
- <tr>
- <td width='40%'>{$ibforums->lang['cp_prune_member']}</td>
- <td><input type='text' size='40' name='member' value='{$ibforums->input['member']}' class='forminput'></td>
- </tr>
- <tr>
- <td colspan='2' align='center'><input type='submit' value='{$ibforums->lang['cp_prune_sub1']}' class='forminput'></td>
- </tr>
- </form>
-
- EOF;
- }
-
-
-
-
- function edit_user_form($profile) {
- global $ibforums;
- return <<<EOF
-
- <form name='ibform' action='{$ibforums->base_url}' method='POST'>
- <input type='hidden' name='s' value='{$ibforums->session_id}'>
- <input type='hidden' name='act' value='ModCP'>
- <input type='hidden' name='CODE' value='compedit'>
- <input type='hidden' name='f' value='{$ibforums->input['f']}'>
- <input type='hidden' name='memberid' value='{$profile['id']}'>
- <tr>
- <td colspan='2' id='pagetitle'>{$ibforums->lang['cp_edit_user']}: {$profile['name']}</td>
- </tr>
- <tr>
- <td width='40%'>{$ibforums->lang['cp_remove_av']}</td>
- <td><select name='avatar' class='forminput'><option value='0'>{$ibforums->lang['no']}</option><option value='1'>{$ibforums->lang['yes']}</option></select></td>
- </tr>
-
- <tr>
- <td width='40%'>{$ibforums->lang['cp_edit_website']}</td>
- <td><input type='text' size='40' name='website' value='{$profile['website']}' class='forminput'></td>
- </tr>
-
- <tr>
- <td width='40%'>{$ibforums->lang['cp_edit_location']}</td>
- <td><input type='text' size='40' name='location' value='{$profile['location']}' class='forminput'></td>
- </tr>
-
- <tr>
- <td width='40%'>{$ibforums->lang['cp_edit_interests']}</td>
- <td><textarea cols='50' rows='3' name='interests' class='forminput'>{$profile['interests']}</textarea></td>
- </tr>
-
- <tr>
- <td width='40%'>{$ibforums->lang['cp_edit_signature']}</td>
- <td><textarea cols='50' rows='5' name='signature' class='forminput'>{$profile['signature']}</textarea></td>
- </tr>
-
- <tr>
- <td colspan='2' align='center'><input type='submit' value='{$ibforums->lang['cp_find_2_submit']}' class='forminput'></td>
- </tr>
- </form>
-
- EOF;
- }
-
-
- function find_two($select) {
- global $ibforums;
- return <<<EOF
-
- <form name='ibform' action='{$ibforums->base_url}' method='POST'>
- <input type='hidden' name='s' value='{$ibforums->session_id}'>
- <input type='hidden' name='act' value='ModCP'>
- <input type='hidden' name='CODE' value='doedituser'>
- <input type='hidden' name='f' value='{$ibforums->input['f']}'>
- <tr>
- <td colspan='2' id='pagetitle'>{$ibforums->lang['cp_edit_user']}</td>
- </tr>
- <tr>
- <td width='40%'>{$ibforums->lang['cp_find_2_user']}</td>
- <td>$select</td>
- </tr>
- <tr>
- <td colspan='2' align='center'><input type='submit' value='{$ibforums->lang['cp_find_2_submit']}' class='forminput'></td>
- </tr>
- </form>
-
- EOF;
- }
-
-
- function find_user() {
- global $ibforums;
- return <<<EOF
-
- <form name='ibform' action='{$ibforums->base_url}' method='POST'>
- <input type='hidden' name='s' value='{$ibforums->session_id}'>
- <input type='hidden' name='act' value='ModCP'>
- <input type='hidden' name='CODE' value='dofinduser'>
- <input type='hidden' name='f' value='{$ibforums->input['f']}'>
- <tr>
- <td colspan='2' id='pagetitle'>{$ibforums->lang['cp_edit_user']}</td>
- </tr>
- <tr>
- <td width='40%'>{$ibforums->lang['cp_find_user']}</td>
- <td><input type='text' size='40' name='name' value='' class='forminput'></td>
- </tr>
- <tr>
- <td colspan='2' align='center'><input type='submit' value='{$ibforums->lang['cp_find_submit']}' class='forminput'></td>
- </tr>
- </form>
-
- EOF;
- }
-
-
- function splash($tcount, $pcount, $forum) {
- global $ibforums;
- return <<<EOF
-
- <tr>
- <td id='pagetitle'>{$ibforums->lang['cp_welcome']}</td>
- </tr>
- <tr>
- <td>{$ibforums->lang['cp_welcome_text']}</td>
- </tr>
- <tr>
- <td>
- <table cellpadding='2' cellspacing='1' border='0' width='75%' id='fancyborder' align='center'>
- <tr>
- <td><b>{$ibforums->lang['cp_mod_in']}</b></td>
- <td>$forum</td>
- </tr>
- <tr>
- <td><b>{$ibforums->lang['cp_topics_wait']}</b></td>
- <td>$tcount</td>
- </tr>
- <tr>
- <td><b>{$ibforums->lang['cp_posts_wait']}</b></td>
- <td>$pcount</td>
- </tr>
- </table>
- </td>
- </tr>
-
- EOF;
- }
-
-
-
-
-
-
-
- function mod_exp($words) {
- global $ibforums;
- return <<<EOF
-
-
-
- <tr>
- <td id='row1' colspan='2'>$words</td>
- </tr>
-
-
- EOF;
- }
-
- function end_form($action) {
- global $ibforums;
- return <<<EOF
-
-
- <tr>
- <td id='row2' align='center' colspan='2'>
- <input type="submit" name="submit" value="$action" class='forminput'>
- </td></tr></table>
- </td></tr></table>
- </form>
-
-
- EOF;
- }
-
- function move_form($jhtml, $forum_name) {
- global $ibforums;
- return <<<EOF
-
-
- <tr>
- <td id='row1'>{$ibforums->lang[move_from]} <b>$forum_name</b> {$ibforums->lang[to]}:</td>
- <td id='row1'><select name='move_id' class='forminput'>$jhtml</select></td>
- </tr>
- <tr>
- <td id='row1'><b>{$ibforums->lang['leave_link']}</b></td>
- <td id='row1'>
- <select name='leave' class='forminput'>
- <option value='y' selected>{$ibforums->lang['yes']}</option>
- <option value='n'>{$ibforums->lang['no']}</option>
- </select>
- </td>
- </tr>
-
-
- EOF;
- }
-
- function delete_js() {
- global $ibforums;
- return <<<EOF
-
- <script language='JavaScript'>
- <!--
- function ValidateForm() {
- document.REPLIER.submit.disabled = true;
- return true;
- }
- //-->
- </script>
-
- EOF;
- }
-
- function topictitle_fields($title, $desc) {
- global $ibforums;
- return <<<EOF
-
-
- <tr>
- <td id='row1'><b>{$ibforums->lang[edit_f_title]}</b></td>
- <td id='row1'><input type='text' size='40' maxlength='50' name='TopicTitle' value='$title'></td>
- </tr>
- <tr>
- <td id='row1'><b>{$ibforums->lang[edit_f_desc]}</b></td>
- <td id='row1'><input type='text' size='40' maxlength='40' name='TopicDesc' value='$desc'></td>
- </tr>
-
-
- EOF;
- }
-
- function poll_entry($id, $entry) {
- global $ibforums;
-
- return <<<EOF
-
- <tr>
- <td id='row1'><b>{$ibforums->lang['pe_option']} $id</b></td>
- <td id='row1'><input type='text' size='60' maxlength='250' name='POLL_$id' value='$entry'></td>
- </tr>
-
- EOF;
-
- }
-
-
- function poll_select_form() {
- global $ibforums;
-
- return <<<EOF
-
- <tr>
- <td id='row1'><b>{$ibforums->lang['pe_pollonly']} $id</b></td>
- <td id='row1'><select name='pollonly' class='forminput'><option value='0'>{$ibforums->lang['pe_no']}</option><option value='1'>{$ibforums->lang['pe_yes']}</option></select></td>
- </tr>
-
- EOF;
-
- }
-
-
- function table_top($posting_title) {
- global $ibforums;
- return <<<EOF
-
- <table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
- <tr>
- <td>
- <table cellpadding='5' cellspacing='1' border='0' width='100%'>
- <tr>
- <td valign='left' colspan='2' id='titlemedium'>$posting_title</td>
- </tr>
-
-
- EOF;
- }
-
-
- function forum_jump($data, $menu_extra="") {
-
- global $ibforums;
- return <<<EOF
-
- <br>
- <table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
- <tr>
- <td align='right'>{$data}</td>
- </tr>
- </table>
- <br>
- EOF;
-
- }
-
- function Menu_bar($base_url, $fid) {
- global $ibforums;
- return <<<EOF
-
- <br>
- <table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
- <tr>
- <td>
- <table cellpadding='2' cellspacing='1' border='0' width='100%'>
- <tr>
- <td width='20%' id='titlemedium'> </td>
- <td width='80%' id='titlemedium'> </td>
- </tr>
- <td id='row1' valign='top'>
-
- <!-- Moderate Topics -->
-
- <table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder'>
- <tr>
- <td id='title'><b>{$ibforums->lang['cp_mod_topics_title']}</b></td>
- </tr>
- <tr>
- <td id='row1'><a href='{$base_url}&act=ModCP&CODE=modtopics&f=$fid'>{$ibforums->lang['cp_mod_topics']}</a></td>
- </tr>
- <td id='row1'><a href='{$base_url}&act=ModCP&CODE=modposts&f=$fid'>{$ibforums->lang['cp_mod_posts']}</a></td>
- </tr>
- </table>
-
- <!-- Manage Topics -->
-
- <br>
-
- <table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder'>
- <tr>
- <td id='title'><b>{$ibforums->lang['cp_manage_posts']}</b></td>
- </tr>
- <tr>
- <td id='row1'><a href='{$base_url}&act=ModCP&CODE=prune&f=$fid'>{$ibforums->lang['cp_prune_posts']}</a></td>
- </tr>
- </table>
-
- <!-- Manage Users -->
-
- <br>
-
- <table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder'>
- <tr>
- <td id='title'><b>{$ibforums->lang['cp_mod_users_title']}</b></td>
- </tr>
- <tr>
- <td id='row1'><a href='{$base_url}&act=ModCP&CODE=edituser&f=$fid'>{$ibforums->lang['cp_user_edit']}</a></td>
- </tr>
- </table>
-
- </td>
- <td id='row1' valign='top'>
- <table cellpadding='4' cellspacing='1' border='0' width='100%'>
- <!-- Start main CP area -->
-
-
-
- EOF;
- }
-
-
- function CP_end() {
- global $ibforums;
- return <<<EOF
-
- <!-- end main CP area -->
- </table>
- </td>
- </tr>
- </table></td></tr></table>
-
-
-
- EOF;
- }
-
- function mod_error($msg="") {
- global $ibforums;
- return <<<EOF
-
- <tr>
- <td id='pagetitle'>{$ibforums->lang['cp_error']}</td>
- </tr>
- <tr>
- <td>$msg</td>
- </tr>
-
- EOF;
- }
-
-
- } // end class
-
- ?>